//
// Created by ashCheng on 2023/2/6.
//
#include <iostream>
#include <string>

using std::cin;
using std::cout;
using std::endl;
using std::string;

int main() {
  //一次读入一个词
  string word;
  while (cin >> word) {
    if (!word.empty()) {
      cout << word << endl;
    }
  }
  return 0;
}